package com.zyjc.city.model.params;

import com.zyjc.city.constant.TimeFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ckj
 * @date 2024年03月29日 16:50
 */
@Data
public class AreaPersonIn {
    @ApiModelProperty("区域id")
    @NotNull(message = "区域id不能为空")
    private Integer areaId;
    @ApiModelProperty("令牌")
    @NotBlank(message = "令牌不能为空")
    private String tokenCode;
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = TimeFormat.PATTERN_DATETIME)
    private Date sTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = TimeFormat.PATTERN_DATETIME)
    private Date eTime;

}
